import request from '@/utils/request'

export function userLogin(data) {
    return request({
        url: 'admin/auth/login',
        method: 'post',
        data
    })
}

export function userRegister(data) {
    return request({
        url: 'admin/auth/register',
        method: 'post',
        data
    })
}

export function userLogout() {
    return request({
        url: 'admin/auth/logout',
        method: 'post'
    })
}

// 刷新Token
export function refreshToken() {
    return request({
        url: 'admin/auth/refresh',
        method: 'post'
    })
}